home *** CD-ROM | disk | FTP | other *** search
/ Clickx 75 / Clickx 75.iso / software / expressionweb / expressionwebv3 / ExpressionWeb_en.exe / Setup / WeComn.cab / xWeb.fpeditax.dll / HTML / 543 < prev    next >
Encoding:
Text File  |  2009-07-15  |  5.3 KB  |  335 lines

  1. <root>
  2.     <test>
  3.         <comment>open stmt</comment>
  4.         <input>
  5.         <![CDATA[
  6.         OPEN somecursor;
  7.         ]]>
  8.         </input>
  9.         <tree>
  10.         </tree>
  11.         <output>
  12.         <![CDATA[]]>
  13.         </output>
  14.     </test>
  15.     <test>
  16.         <comment>close stmt</comment>
  17.         <input>
  18.         <![CDATA[
  19.         CLOSE somecursor;
  20.         ]]>
  21.         </input>
  22.         <tree>
  23.         </tree>
  24.         <output>
  25.         <![CDATA[]]>
  26.         </output>
  27.     </test>
  28.     <test>
  29.         <comment>commit work</comment>
  30.         <input>
  31.         <![CDATA[
  32.     COMMIT WORK;
  33.  
  34.         ]]>
  35.         </input>
  36.         <tree>
  37.         </tree>
  38.         <output>
  39.         <![CDATA[
  40.         ]]>
  41.         </output>
  42.     </test>
  43.  
  44.     <test>
  45.         <comment>rollback stmt</comment>
  46.         <input>
  47.         <![CDATA[
  48.  
  49.     ROLLBACK WORK;
  50.  
  51.         ]]>
  52.         </input>
  53.         <tree>
  54.         </tree>
  55.         <output>
  56.         <![CDATA[
  57.         ]]>
  58.         </output>
  59.     </test>
  60.     <test>
  61.         <comment>positioned delete</comment>
  62.         <input>
  63.         <![CDATA[
  64.     DELETE 
  65.         FROM [Customers] 
  66.         WHERE CURRENT OF someCursor
  67.     ;
  68.  
  69.         ]]>
  70.         </input>
  71.         <tree>
  72.         </tree>
  73.         <output>
  74.         <![CDATA[
  75.         ]]>
  76.         </output>
  77.     </test>
  78.     <test>
  79.         <comment>-- searched delete
  80.     </comment>
  81.         <input>
  82.         <![CDATA[
  83.     DELETE 
  84.         FROM [Customers] 
  85.         WHERE [Customers].[CustomerID] = @CustomerID
  86.     ;
  87.  
  88.         ]]>
  89.         </input>
  90.         <tree>
  91.         </tree>
  92.         <output>
  93.         <![CDATA[
  94.         ]]>
  95.         </output>
  96.     </test>
  97.     <test>
  98.         <comment>-- normal insert</comment>
  99.         <input>
  100.         <![CDATA[
  101.     INSERT 
  102.         INTO [Customers] 
  103.         (    [Customers].[CustomerID], 
  104.             [Customers].[CompanyName], 
  105.             [Customers].[ContactTitle], 
  106.             [Customers].[Address], 
  107.             [Customers].[City]) 
  108.         VALUES (@CustomerID, @CompanyName, @ContactTitle, @Address, @City)
  109.     ;
  110.  
  111.         ]]>
  112.         </input>
  113.         <tree>
  114.         </tree>
  115.         <output>
  116.         <![CDATA[
  117.         ]]>
  118.         </output>
  119.     </test>
  120.     <test>
  121.         <comment>-- normal insert with NULL</comment>
  122.         <input>
  123.         <![CDATA[
  124.     INSERT 
  125.         INTO [Customers] 
  126.         (    [Customers].[CustomerID], 
  127.             [Customers].[CompanyName], 
  128.             [Customers].[ContactTitle], 
  129.             [Customers].[Address], 
  130.             [Customers].[City]) 
  131.         VALUES (@CustomerID, @CompanyName, NULL, @Address, @City)
  132.     ;
  133.  
  134.         ]]>
  135.         </input>
  136.         <tree>
  137.         </tree>
  138.         <output>
  139.         <![CDATA[
  140.         ]]>
  141.         </output>
  142.     </test>
  143.     <test>
  144.         <comment>-- query-based insert</comment>
  145.         <input>
  146.         <![CDATA[
  147.     INSERT 
  148.         INTO [Customers] 
  149.         (    [Customers].[CustomerID], 
  150.             [Customers].[CompanyName], 
  151.             [Customers].[ContactTitle], 
  152.             [Customers].[Address], 
  153.             [Customers].[City]) 
  154.         SELECT 
  155.             [Customers2].[CustomerID], 
  156.             [Customers2].[CompanyName], 
  157.             [Customers2].[ContactTitle], 
  158.             [Customers2].[Address], 
  159.             [Customers2].[City] 
  160.         FROM [Customers2]
  161.         WHERE [Customers2].[MoveToCustomers] = 1
  162.  
  163.     ;
  164.  
  165.         ]]>
  166.         </input>
  167.         <tree>
  168.         </tree>
  169.         <output>
  170.         <![CDATA[
  171.         ]]>
  172.         </output>
  173.     </test>
  174.  
  175.  
  176.     <test>
  177.         <comment>-- basic select</comment>
  178.         <input>
  179.         <![CDATA[
  180.     SELECT 
  181.             [Customers].[CustomerID], 
  182.             [Customers].[CompanyName], 
  183.             [Customers].[ContactTitle], 
  184.             [Customers].[Address], 
  185.             [Customers].[City] 
  186.         FROM [Customers]
  187.     ;
  188.  
  189.         ]]>
  190.         </input>
  191.         <tree>
  192.         </tree>
  193.         <output>
  194.         <![CDATA[
  195.         ]]>
  196.         </output>
  197.     </test>
  198.     <test>
  199.         <comment>-- basic select with where</comment>
  200.         <input>
  201.         <![CDATA[
  202.     SELECT 
  203.             [Customers].[CustomerID], 
  204.             [Customers].[CompanyName], 
  205.             [Customers].[ContactTitle], 
  206.             [Customers].[Address], 
  207.             [Customers].[City] 
  208.         FROM [Customers]
  209.         WHERE [Customers].[CustomerID] = @CustomerID
  210.     ;
  211.  
  212.         ]]>
  213.         </input>
  214.         <tree>
  215.         </tree>
  216.         <output>
  217.         <![CDATA[
  218.         ]]>
  219.         </output>
  220.     </test>
  221.     <test>
  222.         <comment>-- basic select with group by</comment>
  223.         <input>
  224.         <![CDATA[
  225.      
  226.     SELECT 
  227.             [Customers].[CustomerID], 
  228.             [Customers].[CompanyName], 
  229.             [Customers].[ContactTitle], 
  230.             [Customers].[Address], 
  231.             [Customers].[City] 
  232.         FROM [Customers] Group By City
  233.     ;
  234.  
  235.         ]]>
  236.         </input>
  237.         <tree>
  238.         </tree>
  239.         <output>
  240.         <![CDATA[
  241.         ]]>
  242.         </output>
  243.     </test>
  244.     <test>
  245.         <comment>-- basic select with order by</comment>
  246.         <input>
  247.         <![CDATA[
  248.  
  249.     SELECT 
  250.             [Customers].[CustomerID], 
  251.             [Customers].[CompanyName], 
  252.             [Customers].[ContactTitle], 
  253.             [Customers].[Address], 
  254.             [Customers].[City] 
  255.         FROM [Customers] OrDEr bY Address
  256.     ;
  257.  
  258.         ]]>
  259.         </input>
  260.         <tree>
  261.         </tree>
  262.         <output>
  263.         <![CDATA[
  264.         ]]>
  265.         </output>
  266.     </test>
  267.     <test>
  268.         <comment>-- basic select with top</comment>
  269.         <input>
  270.         <![CDATA[
  271.  
  272.     SELECT  TOP 5
  273.             [Customers].[CustomerID], 
  274.             [Customers].[CompanyName], 
  275.             [Customers].[ContactTitle], 
  276.             [Customers].[Address], 
  277.             [Customers].[City] 
  278.         FROM [Customers];
  279.  
  280.         ]]>
  281.         </input>
  282.         <tree>
  283.         </tree>
  284.         <output>
  285.         <![CDATA[
  286.         ]]>
  287.         </output>
  288.     </test>
  289.     <test>
  290.         <comment>-- positioned update</comment>
  291.         <input>
  292.         <![CDATA[
  293.  
  294.     UPDATE [Customers] 
  295.         SET 
  296.             [Customers].[CompanyName] = @CompanyName, 
  297.             [Customers].[ContactTitle] = @ContactTitle, 
  298.             [Customers].[Address] = @Address, 
  299.             [Customers].[City] = @City 
  300.         WHERE CURRENT OF somecursor
  301.     ;
  302.  
  303.         ]]>
  304.         </input>
  305.         <tree>
  306.         </tree>
  307.         <output>
  308.         <![CDATA[
  309.         ]]>
  310.         </output>
  311.     </test>
  312.     <test>
  313.         <comment>-- searched update</comment>
  314.         <input>
  315.         <![CDATA[
  316.     UPDATE [Customers] 
  317.         SET 
  318.             [Customers].[CompanyName] = @CompanyName, 
  319.             [Customers].[ContactTitle] = @ContactTitle, 
  320.             [Customers].[Address] = @Address, 
  321.             [Customers].[City] = @City 
  322.         WHERE [Customers].[CustomerID] = @CustomerID
  323.     ;
  324.  
  325.         ]]>
  326.         </input>
  327.         <tree>
  328.         </tree>
  329.         <output>
  330.         <![CDATA[
  331.         ]]>
  332.         </output>
  333.     </test>
  334.  
  335. </root>